package com.mioto.ld.communication.mqtt.protocol.model;

/**
 * @author mioto-qinxj
 * @date 2024/5/8
 * @desc 回复状态枚举
 */
public enum ReplyStatusEnum {

    /**
     * 服务器成功回复
     */
    SERVER_REPLY_SUCCESS(500100,"SUCCESS"),
    /**
     * 服务器失败回复
     */
    SERVER_REPLY_FAULT(500101,""),
    /**
     * 服务器设备未认证回复
     */
    SERVER_REPLY_UNAUTHENTICATED(500102,"device unauthenticated"),
    /**
     * 设备成功回复
     */
    DEVICE_REPLY_SUCCESS(500200,"SUCCESS"),
    /**
     * 设备失败回复
     */
    DEVICE_REPLY_FAULT(500201,"");

    /**
     * 状态码
     */
    private Integer statusCode;

    /**
     * 响应备注
     */
    private String statusDescription;

    ReplyStatusEnum(Integer statusCode, String statusDescription) {
        this.statusCode = statusCode;
        this.statusDescription = statusDescription;
    }

    public Integer getStatusCode() {
        return statusCode;
    }

    public String getStatusDescription() {
        return statusDescription;
    }
}
